package com.gym.openapi.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
@ToString
public class Recharge implements Serializable {
    private Integer id;

    private Integer cusid;

    private Long orderid;
    @JsonFormat(pattern="yyyy年MM月dd日 HH时mm分ss秒",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy年MM月dd日 HH时mm分ss秒")
    private Date createtime;
    @JsonFormat(pattern="yyyy年MM月dd日 HH时mm分ss秒",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy年MM月dd日 HH时mm分ss秒")
    private Date updatetime;

    private Integer money;

    private Short state;

    private Short paymenttype;

    private static final long serialVersionUID = 1L;

    public Recharge(Integer id, Integer cusid, Long orderid, Date createtime, Date updatetime, Integer money, Short state, Short paymenttype) {
        this.id = id;
        this.cusid = cusid;
        this.orderid = orderid;
        this.createtime = createtime;
        this.updatetime = updatetime;
        this.money = money;
        this.state = state;
        this.paymenttype = paymenttype;
    }

    public Recharge() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCusid() {
        return cusid;
    }

    public void setCusid(Integer cusid) {
        this.cusid = cusid;
    }

    public Long getOrderid() {
        return orderid;
    }

    public void setOrderid(Long orderid) {
        this.orderid = orderid;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public Integer getMoney() {
        return money;
    }

    public void setMoney(Integer money) {
        this.money = money;
    }

    public Short getState() {
        return state;
    }

    public void setState(Short state) {
        this.state = state;
    }

    public Short getPaymenttype() {
        return paymenttype;
    }

    public void setPaymenttype(Short paymenttype) {
        this.paymenttype = paymenttype;
    }
}